import Vue from 'vue'
import Vuex from 'vuex'



Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    uname:sessionStorage.getItem('uname'),
    islogin:sessionStorage.getItem('islogin')
  },
  mutations: {
    setUname(state,uname){
      state.uname=uname;
    },
    setIsLogin(state,islogin){
      state.islogin=islogin
    }
  },
  actions: {
  },
  modules: {
  }
})
